<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">

    <script th:src="${ctx+'/resources/js/jquery-1.9.1.min.js'}" type="text/javascript"></script>
	<script th:src="${ctx+'/resources/js/jquery.md5.js'}" type="text/javascript"></script>
	<script th:src="${ctx+'/resources/js/sweet-alert.js'}" type="text/javascript"></script>
	<link th:href="${ctx+'/resources/css/style.css'}" rel="stylesheet" type="text/css"/>
	<link th:href="${ctx+'/resources/css/sweet-alert.css'}" rel="stylesheet" type="text/css"/>
	<link rel="shortcut icon" th:href="${ctx+'/resources/images/favicon.ico'}"/>
	<script th:src="${ctx+'/resources/js/facility/facility.js'}" type="text/javascript"></script>
	<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script th:src="@{/resources/js/init.js}" type="text/javascript"></script>
	<body class="addEditPage">
		<div th:replace="menu :: facilityDiv"></div>
	<div th:include="content::lableNew" id="content">
			 
		</div>
	</body>

<!-- <span id="incl" th:include="common/addLableValMenu" style="display:none"></span> -->
<script type="text/javascript">

// var addLableVal ='<div id = "addLableVal"></div>';
// $(".rightMain").append(addLableVal);
// var myHtml = $("#incl").html();
// $("#addLableVal").append(myHtml);
// $("#incl").remove();
var addZoneVal ='<div id="addZoneVal" style="display:none"></div>';
$("#content").append(addZoneVal);
if (window.location.search==""){
  	 function is_weixn(){
        var ua = navigator.userAgent.toLowerCase();
        if(ua.match(/MicroMessenger/i)=="micromessenger") {
            return true;
        } else {
            return false;
        };
    };
};
</script>
<script th:src="${ctx+'/resources/js/user/loginout.js'}" type="text/javascript"></script>
<script th:src="${ctx+'/resources/js/lable/addEditLable.js'}"></script>
<!-- <script type="text/javascript">
    if (window.location.search==""){
   	 function is_weixn(){
         var ua = navigator.userAgent.toLowerCase();
         if(ua.match(/MicroMessenger/i)=="micromessenger") {
             return true;
         } else {
             return false;
         };
     };
     if(!is_weixn()){
    	 $("#scanQRCode").click(function(){
         	setTimeout(function(){
        		swal("扫码添加仅支持在微信内部浏览器使用!");
        		$(".custom h2").css("fong-size","16px");
        	},0);
    		/* alert("扫码添加仅支持在微信内部浏览器使用！");*/
    	 });
     }else{
    	    $.ajax({
    	        url:"wx/getWxConfig.html",
    	        type:"get",
    	        success:function(result){
    	        	result=JSON.parse(result);
    	        	console.log(result.date);
    	     wx.config({
    	        debug: false,  
    	        appId: result.date.appid,  
    	        timestamp:result.date.timestamp,  
    	        nonceStr:result.date.nonceStr,  
    	        signature:result.date.signature,  
    	        jsApiList : [ 'checkJsApi', 'scanQRCode' ]  
    	    });//end_config
    	    wx.error(function(res) {  
    	        alert("出错了：" + res.errMsg);  
    	    });  
    	  
    	     wx.ready(function() {
    	        wx.checkJsApi({  
    	            jsApiList : ['scanQRCode'],  
    	            success : function(res) {  

    	            }  
    	        });  
    	  
    	        //扫描二维码
    	        document.querySelector('#scanQRCode').onclick = function() {
    	            wx.scanQRCode({  
    	                needResult : 1, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，  
    	                scanType : [ "qrCode", "barCode" ], // 可以指定扫二维码还是一维码，默认二者都有  
    	                success : function(res) {
    	                    var result = res.resultStr; // 当needResult 为 1 时，扫码返回的结果  
    	                    if(result.substring(0,2)=="ff"&&result.substring(result.length-2,result.length)=="ff"){
    	                    	window.location.href = encodeURI('codeAddLable.html?'+result);
    	                    }else{
    	                    	setTimeout(function(){
    	                 			swal("","二维码信息不正确","error");
    	                 		},0);
    	                    }

    	                }  
    	            });  
    	        };//end_document_scanQRCode  
    	          
    	    });//end_ready 
    	        	}
    	        })
     }

    
    }
   
</script>   -->
</html>
